<?php
namespace app\common\model;

class ShopGoodsBrandModel extends BaseModel
{
    protected $name = 'shop_goods_brand';
    protected $autoWriteTimestamp = false;
    // 定义自动完成的属性
    protected $auto = []; //新增修改
    protected $insert = []; //插入
    protected $update = []; //修改

    /*修改器*/

    /**
     * 获取指定栏目下品牌
     * @param $cid
     */
    public function getBrandByCid($cid){
        $brandList = $this->where("FIND_IN_SET('".$cid."',cid_path)")->select();
        return $brandList;
    }
}
